package folderLogger;

import folderLogger.CoverImageMod.ImageReferenceType;
import folderLogger.fileFilters.ExtensionFilterType;
import folderLogger.outputFile.OutputFileFormat;

public class RunAsConsoleApplication {

	public static void main(String[] args)
	{
		boolean isReal = true;
		ImageReferenceType imgRefType = ImageReferenceType.COPY;
		String baseFolder = "D:\\Mp3\\CD\\Led Zeppelin";
		String outputFolder = "D:\\myTest333";
		OutputFileFormat outputFileFormat = OutputFileFormat.HTML;
		ExtensionFilterType extensionFilterType = ExtensionFilterType.INCLUDE;
		String[] filterExt = new String[] { "mp3", "flac", "ogg", "wma" };
		
		OperationSettings settings = new OperationSettings(extensionFilterType, filterExt, imgRefType, baseFolder, outputFolder, outputFileFormat);
		
		FolderPrinter folderPrinter = new FolderPrinter();
		folderPrinter.setActiveMode(isReal);
		int status = folderPrinter.Run(settings);
		
		if(isReal)
		{
			System.out.println(status);
		}
		if(status != 0)
		{
			System.err.println(folderPrinter.getLastError());
		}
	}

}
